package net.sureon.dao;

import java.util.List;

import net.sureon.common.exception.SureonException;

public interface GroupDAO {
	public Group getGroup(long companyID, long groupID);
	public List<Group> getGroupByCompanyID(long companyID);
	public long getCompanyTopGroupID(long companyID);
	public List<Group> getChildGroups(long companyID, long parentGroupID);
	public long insertGroup(Group group);
	public int updateGroup(Group group);
	
	public int deleteNullGroup(long companyID, long groupID);
	
	public List<Group> getGroupByName(long companyID, String groupName);
	
	public long getManagedGroup(long companyID, long userID);
}
